package org.cx.web;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class HelloController {

	private static Log log = LogFactory.getLog(HelloController.class);
			
	@RequestMapping(value="/insert")
	public String test() {
		log.info("insert");
		log.debug("insert debug...");
		log.error("insert error");
		return "/index.jsp";
	}
	
	@RequestMapping(value="/query",method=RequestMethod.GET)
	public String query() {
		try {
			
		} catch(Exception e) {
			log.error(this, e);
		}

		System.out.println("query");
		return "/index.jsp";
	}

	@RequestMapping(value="/update")
	public String update() {
		System.out.println("update");
		return "/index.jsp";
	}

}
